package com.ruoyi.pet.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pet.mapper.PetSymptomMapper;
import com.ruoyi.pet.domain.PetSymptom;
import com.ruoyi.pet.service.IPetSymptomService;

/**
 * 医生主诉描述Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-01
 */
@Service
public class PetSymptomServiceImpl implements IPetSymptomService 
{
    @Autowired
    private PetSymptomMapper petSymptomMapper;

    /**
     * 查询医生主诉描述
     * 
     * @param id 医生主诉描述主键
     * @return 医生主诉描述
     */
    @Override
    public PetSymptom selectPetSymptomById(Long id)
    {
        return petSymptomMapper.selectPetSymptomById(id);
    }

    /**
     * 查询医生主诉描述列表
     * 
     * @param petSymptom 医生主诉描述
     * @return 医生主诉描述
     */
    @Override
    public List<PetSymptom> selectPetSymptomList(PetSymptom petSymptom)
    {
        return petSymptomMapper.selectPetSymptomList(petSymptom);
    }

    /**
     * 新增医生主诉描述
     * 
     * @param petSymptom 医生主诉描述
     * @return 结果
     */
    @Override
    public int insertPetSymptom(PetSymptom petSymptom)
    {
        return petSymptomMapper.insertPetSymptom(petSymptom);
    }

    /**
     * 修改医生主诉描述
     * 
     * @param petSymptom 医生主诉描述
     * @return 结果
     */
    @Override
    public int updatePetSymptom(PetSymptom petSymptom)
    {
        return petSymptomMapper.updatePetSymptom(petSymptom);
    }

    /**
     * 批量删除医生主诉描述
     * 
     * @param ids 需要删除的医生主诉描述主键
     * @return 结果
     */
    @Override
    public int deletePetSymptomByIds(Long[] ids)
    {
        return petSymptomMapper.deletePetSymptomByIds(ids);
    }

    /**
     * 删除医生主诉描述信息
     * 
     * @param id 医生主诉描述主键
     * @return 结果
     */
    @Override
    public int deletePetSymptomById(Long id)
    {
        return petSymptomMapper.deletePetSymptomById(id);
    }
}
